package com.springframework.beans.factory.support;

import com.springframework.beans.factory.config.MyBeanDefinition;
import org.springframework.beans.factory.support.AbstractBeanDefinitionReader;

/**
 * @Author 虎哥
 * @Description //TODO
 * 要带着问题去学习,多猜想多验证
 **/
public class MyDefaultBeanNameGenerator  implements MyBeanNameGenerator {

    /**
     * A convenient constant for a default {@code DefaultBeanNameGenerator} instance,
     * as used for {@link AbstractBeanDefinitionReader} setup.
     * @since 5.2
     */
    public static final MyDefaultBeanNameGenerator INSTANCE = new MyDefaultBeanNameGenerator();


    @Override
    public String generateBeanName(MyBeanDefinition definition, MyBeanDefinitionRegistry registry) {
        return MyBeanDefinitionReaderUtils.generateBeanName(definition, registry);
    }

}
